from openai import OpenAI

client = OpenAI(
    api_key="sk-XelpeD1K6Q5o9GjxfppXLF2alR8aZeThffX4W6gTqJslYIDy",
    base_url="https://api.chatanywhere.tech/v1"
)

def get_completion(prompt, model= "gpt-3.5-turbo"):
    message = [
        {
            "role": "user",
            "content": prompt
        }
    ]
    response = client.chat.completions.create(
        model= model,
        messages=message
    )

    return response.choices[0].message



text = """
    
"""
success = get_completion(text)
print(success)